package com.ruoyi;

import com.ruoyi.tcp.service.TcpServer;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @author 蒋翔 SY100242
 * @date 2024/7/30 14:29
 * @email SY100242@hnlens.com
 */

@RequiredArgsConstructor
@Component
public class TcpServerRunner implements ApplicationRunner {

    private final TcpServer tcpServer;


    @Override
    public void run(ApplicationArguments args) throws Exception {
        tcpServer.start();
    }
}
